package com.dragon.logical.service.auth;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dragon.repository.entity.Admin;
import com.dragon.repository.entity.Position;

import java.util.List;

/**
 * <p>
 * 岗位表 服务类
 * </p>
 *
 * @author sy
 * @since 2023-06-14
 */
public interface PositionService extends IService<Position> {

    List<Position> ListP(Integer departmentId, String search);

    Page<Position> selectPageList(Integer departmentId,String name,Integer page,Integer limit);

    void insert(Position position);

    void update(Position position);

    void deleteById(Integer positionId);

    void deleteBySomeIds(String ids);

    List<Admin> levelPermissions(Integer grade,String departmentId);

    List<Admin> chooseDepartment(String departmentId);
}
